﻿
@{
    Layout = null;
}

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link href="~/css/img.css" rel="stylesheet" />
    <link rel="stylesheet" type="text/css" href="~/H-ui/static/h-ui/css/H-ui.min.css" />
    <link rel="stylesheet" type="text/css" href="~/H-ui/static/h-ui.admin/css/H-ui.admin.css" />
    <link rel="stylesheet" type="text/css" href="~/H-ui/lib/Hui-iconfont/1.0.8/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="~/H-ui/static/h-ui.admin/skin/green/skin.css" id="skin" />
    <link rel="stylesheet" type="text/css" href="~/H-ui/static/h-ui.admin/css/style.css" />
    <title>我的维修</title>
    <style>
        h2 {
            margin: 10px;
            padding: 10px;
            text-align: center;
            font-size: 35px;
            line-height: 20px;
        }

        .d1 {
            width: 100%;
            height: 40px;
            background-image: url('../../img/daohangtiao1.jpg');
            background-repeat: no-repeat;
            background-size: 100% 40px;
        }
    </style>
</head>
<body class="bb1">
    <div align=center class="d1">
        <marquee style="FONT-SIZE: 35pt; WIDTH: 400px; FILTER: shadow(color=#AF0530); LINE-HEIGHT:15pt; FONT-FAMILY: 隶书; HEIGHT: 80px" scrollamount=6>
            <h2 style="margin-top:0px;text-align:center"><font color=#f90b46>我的维修 </font></h2>
        </marquee>
    </div>

    <div class="page-container">
        <div class="text-c">

            <table class="table">
                <tr>
                    <td hidden="hidden">@Model.RepairsId</td>
                </tr>
                <tr>
                    <td>报修名称：</td>
                    <td>
                        <span>@Model.RepairsName</span>
                    </td>
                </tr>
                <tr>
                    <td>问题描述：</td>
                    <td>@Model.RepairsDesc</td>
                </tr>
                <tr>
                    <td>发现人：</td>
                    <td>
                        @Model.FindPeople
                    </td>

                </tr>
                <tr>
                    <td>发现时间：</td>
                    <td>
                        @Model.FindDate
                    </td>
                </tr>
                <tr>
                    <td>问题等级：</td>
                    <td>
                        @Model.Grade
                    </td>
                </tr>
                <tr>
                    <td>上传问题配件图片：</td>
                    <td>
                        <img src="@Model.RapairsPicture" />
                    </td>
                </tr>
                <tr>
                    <td>维修记录：</td>
                    <td><textarea id="TextArea1" rows="2" cols="20"></textarea></td>
                </tr>
                <tr>
                    <td></td>
                    <td>
                        <input type="button" value="保存" class="btn btn-success" onclick="Funsave(this,@Session["mid"])" />
                        <input type="button" value="维修完成" class="btn btn-success" onclick="Funsave1(this,@Session["mid"])" />
                    </td>
                </tr>
            </table>
            <footer class="footer mt-20">
                <div class="container">
                    <p>
                        关于我们  |  联系我们    |  项目合作  |  广告植入   |  友情链接<br />
                        版权所有 京ICP备11009069<br />
                        Copyright ©2016 Gaotie.cn
                    </p>
                </div>
            </footer>
        </div>

        </div>

        <!--_footer 作为公共模版分离出去-->
        <script type="text/javascript" src="~/H-ui/lib/jquery/1.9.1/jquery.min.js"></script>
        <script type="text/javascript" src="~/H-ui/lib/layer/2.4/layer.js"></script>
        <script type="text/javascript" src="~/H-ui/static/h-ui/js/H-ui.min.js"></script>
        <script type="text/javascript" src="~/H-ui/static/h-ui.admin/js/H-ui.admin.js"></script> <!--/_footer 作为公共模版分离出去-->
        <!--请在下方写此页面业务相关的脚本-->
        <script type="text/javascript" src="lib/jquery.contextmenu/jquery.contextmenu.r2.js"></script>

        <script>
            function Funsave(obj,id)
            {
                var content=$("#TextArea1").val();
                $.ajax({
                    type:"post",
                    url:"/Maintain/Savechange",
                    data:{rid:id,content:content,state:1},
                    success:function(obj)
                    {
                        alert(obj)
                        if(obj)
                        {
                            alert('保存成功');
                            location.href="/Maintain/MyIndent"
                        }
                        else
                        {
                            alert('保存失败');
                            location.href="/Maintain/MyIndent"
                        }
                    }
                })
            }

            function Funsave1(obj,id)
            {
                var content=$("#TextArea1").val();
                $.ajax({
                    type:"post",
                    url:"/Maintain/Savechange",
                    data:{rid:id,content:content,state:2},
                    success:function(obj)
                    {
                        if(obj)
                        {
                            alert('维修成功');
                            location.href="/Maintain/MyIndent"
                        }
                        else{
                            alert('维修失败');
                            location.href="/Maintain/MyIndent"
                        }
                    }
                })
            }
        </script>

</body>
</html>

